<?php
/**
 * Created by PhpStorm.
 * User: huynguyen
 * Date: 9/29/14
 * Time: 8:58 PM
 */

namespace Common\Models\Videos;
use Phalcon\Mvc\Model;

class VideoArtistLink extends Model
{
    protected $id;
    
    protected $video_id;

    protected $artist_id;

    public static $table = 'video_artist_link';

    public function getSource()
    {
        return 'video_artist_link';
    }

    public function initialize()
    {
        $this->setSource('video_artist_link');
        
        $this->belongsTo('artist_id','Common\Models\Videos\Artist','id',array(
            'alias'     =>  'artist'
        ));
    }

    protected function getId()
    {
        return $this->id;
    }

    protected function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @param mixed $artist_id
     */
    public function setArtistId($artist_id)
    {
        $this->artist_id = $artist_id;
    }

    /**
     * @return mixed
     */
    public function getArtistId()
    {
        return $this->artist_id;
    }

    /**
     * @param mixed $video_id
     */
    public function setVideoId($video_id)
    {
        $this->video_id = $video_id;
    }

    /**
     * @return mixed
     */
    public function getVideoId()
    {
        return $this->video_id;
    }


} 